home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 36 / qw10add.zip / SETENVIR.TEC < prev    next >
Text File  |  1987-10-05  |  2KB  |  38 lines

  1. SETTING ENVIRONMENT SPACE WITH DESQview.
  2.  
  3. Each DV window has up to 32K of environment UNTIL you run a 
  4. program or a batch file.  If you need more environment, try one 
  5. of these methods:
  6.  
  7. Method 1 - Create an autostartup script (see page 89 in the DV 
  8. manual for details on how to do this) for your window which 
  9. sets the environment variables you need and then starts your 
  10. program.
  11.  
  12. Method 2 - Create dummy environment variables with strings of 
  13. garbage as space holders...like,
  14.      X1 = ;lfjapoieupoeiru poiunvpwovupwerouvpwourvpworuiqpw
  15.      x2 = 46416716416416746416167161768716187637846887787891
  16.      x3 = nnvjvn9n0439543-43b3nnvhnviovungigcmnongut4o9935978
  17.      etc.
  18. Next, open a DV window that has the Program...field as:
  19.           c:\COMMAND.COM
  20.      AND, close on exit to DOS set to [Yes].  This makes 
  21. COMMAND.COM the program which gets run.  You can then start your 
  22. own program or batch file.  In this method, your batch file
  23. should clear the dummy variables and then run the program.
  24.      example:       set x1 =
  25.                     set x2 =
  26.                     set x3 =
  27.                     etc.
  28.                     Run the program.
  29.      This works because every program loaded directly by DV 
  30. (i.e., a .COM or .EXE is specified and Close on Exit to DOS is 
  31. set to [Yes]) inherits the environment that existed before DV was 
  32. started.  "Set x1 =    " clears that environment variable which 
  33. in turn frees the space for your own values.
  34.  
  35. Method 3-  Have the environment set up with the needed values 
  36. before running DV.  Then every .EXE or .COM (which includes 
  37. COMMAND.COM) will inherit this environment.
  38.